package ${basePackage}.job;

import ${basePackage}.core.job.BaseDistributer;
import ${basePackage}.core.job.JobParam;
import ${basePackage}.dao.system.model.SystemPermission;
import ${basePackage}.service.system.SystemPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * DistributableTestJob的分发器
 */
@Component("distributableTestJobDistributer")
public class DistributableTestJobDistributer extends BaseDistributer<SystemPermission> {

    @Autowired
    private SystemPermissionService systemPermissionService;

    @Override
    public List<SystemPermission> getBusinessData(JobParam jobParam) {
        return systemPermissionService.findList(new SystemPermission());
    }
}
